package router

import (
	"github.com/gin-gonic/gin"
	v1 "guns-go/controller/v1"
)

func InitSysMenuRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
	MenuRouter := Router.Group("sysMenu")
	{
		MenuRouter.GET("list", v1.MenuList)
		MenuRouter.GET("tree", v1.MenuTree)
		MenuRouter.POST("add", v1.MenuAdd)
		MenuRouter.POST("edit", v1.MenuEdit)
		MenuRouter.POST("delete", v1.MenuDelete)
		MenuRouter.GET("treeForGrant", v1.TreeForGrant)
		MenuRouter.POST("change", v1.MenuChange)
	}
	return MenuRouter
}
